package com.hongxia.assetsys.service;

import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.hongxia.assetsys.domain.AssertOrg;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Hongxia
* @description 针对表【tb_assert_org】的数据库操作Service
* @createDate 2024-01-06 15:25:20
*/
public interface AssertOrgService extends IService<AssertOrg> {

    /**
     * 添加组织
     * @param org
     * @return
     */
    Integer addOrg(AssertOrg org);

    /**
     * 根据名字模糊查询
     * @param name
     * @return
     */
    List<AssertOrg> getOrgListLikely(String name);

    /**
     * 根据名字查询
     * @param name
     * @return
     */
    AssertOrg getOrgListByName(String name);

    /**
     * 按照所属父类机构名字进行模糊查询
     * @param fatherorg
     * @return
     */
    List<AssertOrg> getOrgListByFatherOrg(String fatherorg);


}
